package sorter;

import java.rmi.Naming;
//import java.rmi.*;

import sorter.SortFactory;

public class SortServer 
{
	private static final String HOST = "localhost";

	public static void main(String[] args) throws Exception
	{
		try{
			SortFactory temp = new sorter.SortFactory();
			String rmiObjectName = "rmi://" + HOST + "/factory";
	        System.out.println("Trying to bind SortServer");
			Naming.rebind(rmiObjectName,temp);
			System.out.println("Binding complete...\n");
			}
	        catch (Exception e) {
	            System.err.println("RMI exception:");
	            e.printStackTrace();
	        }
	}
}